package com.itheima.mapper;


import com.github.pagehelper.Page;
import com.itheima.pojo.Address;

import java.util.List;

public interface AddressMapper {


/**
 * @author aili
 * @create 2020-05-16 12:48
 */


    //通过id获取1个地址
    Address getAddressById(Integer id);
    //通过name获取1个地址
    Address getAddressByName(String name);

    //获取所有的地址
    List<Address> getAllAddress();
    Page<Address> findByCondition(String queryString);
    void add(Address address);
    void delete(int id);

    //��ѯ����ַ
    public List<String> findAddress();



}
